import request from '@/utils/request'
import data from "../../views/system/dict/data.vue";

// 查询标签列表
export function getTagList(data) {
  return request({
    url: '/system/tagList',
    method: 'post',
    data: data
  })
}

// 添加标签
export function getAddTag(data) {
  return request({
    url: '/system/addTag',
    method: 'post',
    data: data
  })
}
// 标签分组
export function getTagGroup() {
  return request({
    url: '/system/tagGroup',
    method: 'get'
  })
}

// 删除标签
export function getDelTag(tagId) {
  return request({
    url: '/system/del/' + tagId,
    method: 'post',
    data: tagId
  })
}
// 回显标签
export function getByIdTag(tagId) {
  return request({
    url: '/system/tagById/' + tagId,
    method: 'get'
  })
}
// 修改标签
export function getUpdTag(data) {
  return request({
    url: '/system/updTag',
    method: 'post',
    data: data
  })
}
